Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for detect provider endpoint #354

Closed

Conversation

mrashed-dev
Copy link
Contributor

@mrashed-dev mrashed-dev commented Mar 5, 2024

Description

This PR adds support for the /connect/detect_provider endpint.

Usage

To get the provider:

from nylas import APIClient

# Pass the access token to the Nylas client
nylas = APIClient(
    NYLAS_CLIENT_ID,
    NYLAS_CLIENT_SECRET,
    ACCESS_TOKEN
)

# Pass the email to the detect provider function
provider = nylas.detect_provider("[email protected]")

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 16.66667% with 5 lines in your changes missing coverage. Please review.

Please upload report for BASE (v5@247a70f). Learn more about missing BASE report.

Files with missing lines Patch % Lines
nylas/client/client.py 16.66% 5 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##             v5     #354   +/-   ##
=====================================
  Coverage      ?   95.71%           
=====================================
  Files         ?       17           
  Lines         ?     1728           
  Branches      ?        0           
=====================================
  Hits          ?     1654           
  Misses        ?       74           
  Partials      ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AaronDDM AaronDDM closed this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants